export const singer = (state) => state.singer;

export const album = (state) => state.album;

export const toast = (state) => state.toast;

export const playing = (state) => state.playing;

export const fullScreen = (state) => state.fullScreen;

export const playlist = (state) => state.playlist;

export const sequenceList = (state) => state.sequenceList;

export const mode = (state) => state.mode;

export const currentIndex = (state) => state.currentIndex;

export const searchHistory = (state) => state.searchHistory;

export const playHistory = (state) => state.playHistory;

export const favoriteList = (state) => state.favoriteList;

export const currentSong = (state) => {
  return state.playlist[state.currentIndex] || {};
};
